#ifndef __SENSOR_BH1750_H_
#define __SENSOR_BH1750_H_

#define BH1750_I2C_BUS_NAME     "i2c1"      // I2C设备名称

#define BH1750_DPOWR            0X00        //断电
#define BH1750_POWER            0X01        //上电
#define BH1750_RESET            0X07        //重置
#define BH1750_CHMODE           0X10        //连续H分辨率
#define BH1750_CHMODE2          0X11        //连续H分辨率2
#define BH1750_CLMODE           0X13        //连续低分辨
#define BH1750_H1MODE           0X20        //一次H分辨率
#define BH1750_H1MODE2          0X21        //一次H分辨率2
#define BH1750_L1MODE           0X23        //一次L分辨率模式
#define BH1750_SlaveAddress     0x23        //定义器件在IIC总线中的从地址,根据ALT  ADDRESS地址引脚不同修改
//ALT  ADDRESS引脚接地时地址为0xA6，接电源时地址为0x3A

int bh1750_init(void);
float bh1750_get_data(void);

#endif // __SENSOR_BH1750_H_
